package com.wkbb.sports.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @author 体质分析
 */
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
public class TrainAnalysisDto implements Serializable {
    private Integer studentCount;
    private Integer teacherCount;
    private Integer classCount;
    private Long trainTotalTime;
    private Long trainCount;
    private PhysicalAnalysisDto physicalAnalysisDto;
    //累计成绩占比
    private TAnalysisDto tAnalysisDto;
    //平均成绩比例
    private List<TAnalysisDto> gradeTrainList;

    public void format() {
        if (physicalAnalysisDto == null) physicalAnalysisDto = new PhysicalAnalysisDto();
        physicalAnalysisDto.format();
    }
}